﻿using MvcApplication.CommonForm.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcApplication.WebAPI.CommonForm.Controllers
{
    public class HomeController : Controller
    {
        IDemonService _demonService;

        public HomeController(IDemonService demonService)
        {
            _demonService = demonService;
        }

        public ActionResult Index()
        {
            var user = _demonService.TestDemon();

            return Json(user, JsonRequestBehavior.AllowGet);
        }
    }
}
